\input{regression-test}
\documentclass[degree=doctor,fontset=fandol]{ustcthesis}

\begin{document}
\START
\showoutput

\listoffiguresandtables

\clearpage
\OMIT

\mainmatter
\chapter{Foo}

\begin{figure}
  \caption{Figure foo}
\end{figure}

\begin{figure}
  \caption{Figure A long long long long long long long long long caption}
\end{figure}

\begin{figure}
  \caption{Figure foo}
\end{figure}

\begin{table}
  \caption{Table foo}
\end{table}

\begin{table}
  \caption{Table bar}
\end{table}

\begin{table}
  \caption{Table foo}
\end{table}



\chapter{Bar}

\begin{figure}
  \caption{Figure foo}
\end{figure}

\begin{figure}
  \caption{Figure bar}
\end{figure}

\begin{figure}
  \caption{Figure foo}
\end{figure}

\begin{table}
  \caption{Table foo}
\end{table}

\begin{table}
  \caption{Table bar}
\end{table}

\begin{table}
  \caption{Table foo}
\end{table}

\end{document}
